Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add RA/DEC + rates to SimultaneousStates #144

Merged
merged 1 commit into from
Oct 25, 2024
Merged

Add RA/DEC + rates to SimultaneousStates #144

merged 1 commit into from
Oct 25, 2024

Conversation

dahlend
Copy link
Collaborator

@dahlend dahlend commented Oct 25, 2024

Fixes #143

This adds RA/Dec on sky rates as projected onto the tangent plane.

    import kete
    import numpy as np
    jd = kete.Time(2460324.0607406627, scaling='utc').jd
    
    
    state = kete.HorizonsProperties.fetch("Eros").state
    obs = kete.spice.get_state("Earth", jd)
    fov = kete.OmniDirectionalFOV(obs)
    
    vis = kete.fov_state_check([state], [fov])[0]
    radec_rates = np.array(vis.ra_dec_with_rates)
    radec_rates[:, 2:] *= 60 * 60 / 24
    radec_rates[0]
    # [349.05471178,   5.38827149,  91.84545114,  34.03329178]
    # Same query from horizons:
    # 349.05471   5.38827  91.83002  34.07774

The slight discrepancy between the horizons rates and these look to be because horizons computes in the JNOW frame, not the J2000.

@dahlend dahlend merged commit d817021 into main Oct 25, 2024
2 checks passed
@dahlend dahlend deleted the radec branch October 25, 2024 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for projected velocity calculations
1 participant